Fix some nullable return annotations
authorSophie Herold <sophie@hemio.de>
Sat, 21 Nov 2020 15:33:40 +0000 (16:33 +0100)
committerSophie Herold <sophie@hemio.de>
Sat, 21 Nov 2020 15:33:40 +0000 (16:33 +0100)
gtk/gtkaboutdialog.c
gtk/gtkactionable.c
gtk/gtkappchooserwidget.c
gtk/gtkapplication.c
gtk/gtkentry.c
gtk/gtklabel.c

index 4fde9d2299d13f104941cdae831bd53a96115dda..745b45ea9b88a71590abc6c92e617793c5b1ee69 100644 (file)
@@ -945,7 +945,7 @@ update_website (GtkAboutDialog *about)
  *
  * Returns the program name displayed in the about dialog.
  *
- * Returns: The program name. The string is owned by the about
+ * Returns: (nullable): The program name. The string is owned by the about
  *  dialog and must not be modified.
  */
 const char *
index 150a91055b7c5598fb863bf7de0636d3e7e00d89..f2a38fe71d8d7002f1a2b1138165ecff606a29e4 100644 (file)
@@ -130,7 +130,7 @@ gtk_actionable_set_action_name (GtkActionable *actionable,
  *
  * See gtk_actionable_set_action_target_value() for more information.
  *
- * Returns: (transfer none): the current target value
+ * Returns: (nullable) (transfer none): the current target value
  **/
 GVariant *
 gtk_actionable_get_action_target_value (GtkActionable *actionable)
index 7c4da1d85f32d863217e1c5265f9eec22ad262eb..65076c3591475cc990746c012660229eab15bd78 100644 (file)
@@ -1369,7 +1369,7 @@ gtk_app_chooser_widget_set_default_text (GtkAppChooserWidget *self,
  * Returns the text that is shown if there are not applications
  * that can handle the content type.
  *
- * Returns: the value of #GtkAppChooserWidget:default-text
+ * Returns: (nullable): the value of #GtkAppChooserWidget:default-text
  */
 const char *
 gtk_app_chooser_widget_get_default_text (GtkAppChooserWidget *self)
index 2806cd7cf43fb3b015a8f79238775ae66180c675..7b438f1581004e7198342a896cde06a568063717 100644 (file)
@@ -888,7 +888,7 @@ gtk_application_set_menubar (GtkApplication *application,
  * Returns the menu model that has been set with
  * gtk_application_set_menubar().
  *
- * Returns: (transfer none): the menubar for windows of @application
+ * Returns: (nullable) (transfer none): the menubar for windows of @application
  */
 GMenuModel *
 gtk_application_get_menubar (GtkApplication *application)
@@ -1174,7 +1174,7 @@ gtk_application_handle_window_map (GtkApplication *application,
  * See [Automatic resources][automatic-resources]
  * for more information.
  *
- * Returns: (transfer none): Gets the menu with the
+ * Returns: (nullable) (transfer none): Gets the menu with the
  *     given id from the automatically loaded resources
  */
 GMenu *
index b5ebbe2b144064324badf6c37e8789274f372314..a4cf3b30f8667f85d1d543d82d11ad2bbbe14236 100644 (file)
@@ -3245,7 +3245,7 @@ gtk_entry_set_completion (GtkEntry           *entry,
  *
  * Returns the auxiliary completion object currently in use by @entry.
  *
- * Returns: (transfer none): The auxiliary completion object currently
+ * Returns: (nullable) (transfer none): The auxiliary completion object currently
  *     in use by @entry.
  */
 GtkEntryCompletion *
index 4e17a5ba1b52b8d80f941a1dd58ec392a239ff19..58c7431814b101060aa65f732e890aaef5d034a0 100644 (file)
@@ -5942,7 +5942,7 @@ gtk_label_set_extra_menu (GtkLabel   *self,
  *
  * Gets the menu model set with gtk_label_set_extra_menu().
  *
- * Returns: (transfer none): (nullable): the menu model
+ * Returns: (transfer none) (nullable): the menu model
  */
 GMenuModel *
 gtk_label_get_extra_menu (GtkLabel *self)